#ifndef GAME_TEST_H
#define GAME_TEST_H

int create_less_cubes()
{
    int y; 
    int x;
    Cube_P cube;
    for(y = 0; y < 8; ++y) {
        for(x = 0; x < 8; ++x) {
            cube = &cubes[y*8+x];
            cube->enabled = 0;
        }
    }
    for(y = 0; y < 4; ++y) {
        for(x = 0; x < 4; ++x) {
            cube = &cubes[y*8+x];
            cube->y = -(32*2+y*32*2*2)+W/2;
            cube->x = 32*2+x*32*2*2-W/2;
            cube->angle = rand() % 360; 
            if (cube->angle > 180) {
                cube->angle = - (360 - cube->angle);
            }
            cube->ID = y*8 + x; 
            cube->target = 0;
            cube->enabled = 1;
            
        }
    }
    return 1;
}

int create_test_cubes()
{
    int y;
    int x;
    Cube_P cube;
    for(y = 0; y < 8; ++y) {
        for(x = 0; x < 8; ++x) {
            cube = &cubes[y*8+x];
            cube->enabled = 0;
        }
    }
    cube = &cubes[0];
    cube->x = convert_x_to_center(32);
    cube->y = convert_y_to_center(32);
    cube->ID = 1;
    cube->angle = 0; 
    cube->target = 0;
    cube->enabled = 1;
    
    cube = &cubes[1];
    cube->x = convert_x_to_center(32);
    cube->y = convert_y_to_center(512-32);
    cube->ID = 2;
    cube->angle = 0; 
    cube->target = 0;
    cube->enabled = 1;
    
    
    cube = &cubes[2];
    cube->x = convert_x_to_center(512-32);
    cube->y = convert_y_to_center(512-32);
    cube->ID = 3;
    cube->angle = +90; 
    cube->target = 0;
    cube->enabled = 1;
    return 1;
}

#endif
